package com.study.装配bean注解;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author chenhs
 * @date 2019/9/8
 */
public class Test {
	@org.junit.Test
	public  void demo(){
	String	xmlPath="main\\java\\com\\study\\装配bean注解\\applicationContext.xml";
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		StudentActiion studentAction = applicationContext.getBean("studentAction", StudentActiion.class);
		studentAction.addStudent();
	}
}
